import axios from "@/libs/api.request"
let baseUrl = "http://192.168.1.68:18084"
export const getSupplierList = (data) => {
    return axios.request({
        url: baseUrl + "/jxc/provider/get_page",
        params: data,
        method: "get"
    });
}


export const addSupplier = (data) => {
    return axios.request({
        url: baseUrl + "/jxc/provider",
        data: data,
        method: "post"
    });
}

/**
 * 
 * @title 修改供应商
 * @method put
 */
export const editSupplier = (data) => {
    return axios.request({
        url: baseUrl + "/jxc/provider",
        data: data,
        method: "put"
    });
}

/***
 *  @params id
 *  @method delete
 * 
 */
export const delSupplier = (data) => {
    return axios.request({
        url: baseUrl + "/jxc/provider",
        params: data,
        method: "delete"
    });
}

